package cn.tedu.javaadminly.demo.service.impl;

import cn.tedu.javaadminly.demo.entity.Article;
import cn.tedu.javaadminly.demo.mapper.ArticleMapper;
import cn.tedu.javaadminly.demo.param.ArticleQueryParam;
import cn.tedu.javaadminly.demo.service.ArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ArticleServiceImpl implements ArticleService {
    @Autowired
    private ArticleMapper articleMapper;
    @Override
    public List<Article> searchArticles(ArticleQueryParam param) {
        return articleMapper.searchArticles(param);
    }
}
